
from db_util import MySqlDb
if __name__ == '__main__':
    # 查询第2页，每页3条
    result = MySqlDb.query_by_page(
        "SELECT * FROM blog_article WHERE status=:status",
        {'status': 1},
        page=1,
        page_size=3
    )
    print(result)

